import request from '@/utils/request'
import {HOST} from '@/constants'
import qs from 'qs'

export function creatorLogin(data) {
  return request({
    url: `${HOST}/login/creator`,
    method: 'post',
    data: qs.stringify(data)
  })
}

export function uploadFile(data) {
  return request({
    url: `${HOST}/file/upload`,
    method: 'post',
    data
  })
}

export function getFileOssConfig(data) {
  return request({
    url: `${HOST}/file/oss/config`,
    method: 'get',
    data
  })
}
